# Contributor: Sertonix <sertonix@posteo.net>
# Maintainer: Sertonix <sertonix@posteo.net>
pkgname=arcticons-icon-theme
pkgver=9.2.4.1
pkgrel=0
pkgdesc="Line-based icon pack"
url="https://github.com/Arcticons-Team/Arcticons-Linux"
arch="noarch"
license="GPL-3.0-or-later"
depends="$pkgname-light $pkgname-dark"
subpackages="$pkgname-light:_theme $pkgname-dark:_theme"
source="$pkgname-$pkgver.tar.gz::https://github.com/Arcticons-Team/Arcticons-Linux/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/Arcticons-Linux-$pkgver"
options="!check"

package() {
	install -d "$pkgdir/usr/share/icons"
	cp -r arcticons-dark arcticons-light -t "$pkgdir/usr/share/icons"
}

_theme() {
	depends=
	local variant="${subpkgname##"$pkgname"-}"
	pkgdesc="$pkgdesc (Version for $variant themes)"

	amove usr/share/icons/arcticons-"$variant"
}

sha512sums="
d05f989d6f8085325fa97af7e2b259de868c875b66d918ab87c0f506b1b5f966b8cd75725d3adb85567f96a95a8ec5a4ec208e3dd5878c73b0c00853a4785438  arcticons-icon-theme-9.2.4.1.tar.gz
"
